package cn.itcast.work.service.content;


import cn.itcast.work.dao.content.ContentMapper;
import cn.itcast.work.pojo.Text_show;
//import cn.itcast.work.dao.content.impl.Co;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 *
 */
@Slf4j
@Service("contentService")
public class ContentService {

//    @Resource(name = "ContentDao")
//    private ContentDaoImpl contentDao;

    @Autowired
    private ContentMapper contentMapper;

    public List<Text_show> selectConText(int id){
//        log.info("[service]:首页查询分类博客");
//        System.out.println("sevice 查询分类博客");
//        System.out.println("id = " + id);
       return contentMapper.selectConText(id);
    }
}
